tdf#119067 DefaultLabel only for interactively created OBJs
authorArmin Le Grand <Armin.Le.Grand@cib.de>
Wed, 10 Oct 2018 14:02:05 +0000 (16:02 +0200)
committerRene Engelhard <rene@debian.org>
Wed, 10 Oct 2018 21:25:32 +0000 (22:25 +0100)
commit60ca41d03741cbc75e0f1889ae2fbfd5d250c197
treedf26ba52a614559c7c5de95df1249737fb3442d5
parent9e35202a98322a01f115dc35db5064d8b04b244b
tdf#119067 DefaultLabel only for interactively created OBJs

Both have to work - the Wizard-created report which this report
defines and the interactively created ones (see tdf#118730). The
second was moved to OUnoObject::CreateMediator and by error
sets the default text (e.g. 'Label') now all the time. This
was wrong.
To solve, remember if the Object was created interactively
(which is the case when ::EndCreate was called which is needed
again) and set the default only when that is the case.

Change-Id: Id26e701d863b098a77db5f6419bcabf1f2ec5017
Reviewed-on: https://gerrit.libreoffice.org/61620
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Gbp-Pq: Name DefaultLabel-only-for-interactively-created-OBJs.diff
reportdesign/inc/RptObject.hxx
reportdesign/source/core/sdr/RptObject.cxx